home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / srcuc.zip / UXSOCK.H < prev    next >
C/C++ Source or Header  |  1992-02-03  |  2KB  |  57 lines

  1. /* -*-C-*-
  2.  
  3. $Header: /scheme/src/microcode/RCS/uxsock.h,v 1.3 1992/02/03 23:46:14 jinx Exp $
  4.  
  5. Copyright (c) 1990-92 Massachusetts Institute of Technology
  6.  
  7. This material was developed by the Scheme project at the Massachusetts
  8. Institute of Technology, Department of Electrical Engineering and
  9. Computer Science.  Permission to copy this software, to redistribute
  10. it, and to use it for any purpose is granted, subject to the following
  11. restrictions and understandings.
  12.  
  13. 1. Any copy made of this software must include this copyright notice
  14. in full.
  15.  
  16. 2. Users of this software agree to make their best efforts (a) to
  17. return to the MIT Scheme project any improvements or extensions that
  18. they make, so that these may be included in future releases; and (b)
  19. to inform MIT of noteworthy uses of this software.
  20.  
  21. 3. All materials developed as a consequence of the use of this
  22. software shall duly acknowledge such use, in accordance with the usual
  23. standards of acknowledging credit in academic research.
  24.  
  25. 4. MIT has made no warrantee or representation that the operation of
  26. this software will be error-free, and MIT is under no obligation to
  27. provide any services, by way of maintenance, update, or otherwise.
  28.  
  29. 5. In conjunction with products arising from the use of this material,
  30. there shall be no use of the name of the Massachusetts Institute of
  31. Technology nor of any adaptation thereof in any advertising,
  32. promotional, or sales literature without prior written consent from
  33. MIT in each case. */
  34.  
  35. #ifndef SCM_UXSOCK_H
  36. #define SCM_UXSOCK_H
  37.  
  38. #include "os.h"
  39.  
  40. extern Tchannel EXFUN (OS_open_tcp_stream_socket, (char * host, int port));
  41. extern int EXFUN
  42.   (OS_get_service_by_name,
  43.    (CONST char * service_name, CONST char * protocol_name));
  44. extern unsigned int EXFUN (OS_host_address_length, (void));
  45. extern char ** EXFUN (OS_get_host_by_name, (CONST char * host_name));
  46.  
  47. #ifdef HAVE_UNIX_SOCKETS
  48. extern Tchannel EXFUN (OS_open_unix_stream_socket, (CONST char * filename));
  49. #endif
  50.  
  51. extern Tchannel EXFUN (OS_open_server_socket, (unsigned int port, int ArgNo));
  52. extern Tchannel EXFUN
  53.   (OS_server_connection_accept,
  54.    (Tchannel channel, char * peer_host, int * peer_port));
  55.  
  56. #endif /* SCM_UXSOCK_H */
  57.